<div class="infoBlock">
<div class="infoBlockHeading"><span class="t">Form Preview</span></div>
<div class="infoBlockContent">

<div class="infoBlockItem">
<div class="formitem" style="padding: 10px;">
<form name="formpreviewform" method="post" onsubmit="return false;">
<input type="hidden" name="action" value="update">
<input type="hidden" name="id" value="{$CONTENT.item.id}">

<h2>{$CONTENT.item.subject}</h2>
<p>{$CONTENT.item.content|text|nl2br}</p>
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="editBox">
{section name=item loop=$CONTENT.items}
  <tr>
    <td width="100" align="right"><label class="fb">{$CONTENT.items[item].name}</label>: </td>
    <td>
{if $CONTENT.items[item].type == 'text'}
<input type="text" name="field_fi{$CONTENT.items[item].id}" value="" {if $CONTENT.items[item].require == 1} require="true"{/if}>
{if $CONTENT.items[item].require == 1}<span class="require">*</span>{/if}

{elseif $CONTENT.items[item].type == 'email'}
<input type="text" name="field_fi{$CONTENT.items[item].id}" value="" {if $CONTENT.items[item].require == 1} require="true"{/if} valid="email">
{if $CONTENT.items[item].require == 1}<span class="require">*</span>{/if}

{elseif $CONTENT.items[item].type == 'password'}
<input type="password" name="field_fi{$CONTENT.items[item].id}" value="" {if $CONTENT.items[item].require == 1} require="true"{/if}>
{if $CONTENT.items[item].require == 1}<span class="require">*</span>{/if}

{elseif $CONTENT.items[item].type == 'textarea'}
<textarea name="field_fi{$CONTENT.items[item].id}" {if $CONTENT.items[item].require == 1} require="true"{/if}></textarea>
{if $CONTENT.items[item].require == 1}<span class="require">*</span>{/if}

{elseif $CONTENT.items[item].type == 'file'}

{elseif $CONTENT.items[item].type == 'image'}

{elseif $CONTENT.items[item].type == 'select'}
<select name="field_fi{$CONTENT.items[item].id}" {if $CONTENT.items[item].require == 1} require="true"{/if}>
{section name=a loop=$CONTENT.items[item].value}
<option value="{$CONTENT.items[item].value[a]}">{$CONTENT.items[item].value[a]}</option>
{/section}
</select>

{elseif $CONTENT.items[item].type == 'checkbox'}
{section name=a loop=$CONTENT.items[item].value}
<label><input type="checkbox" name="field_fi{$CONTENT.items[item].id}" value="{$CONTENT.items[item].value[a]}" {if $CONTENT.items[item].require == 1} require="true"{/if}>{$CONTENT.items[item].value[a]}</label>
{/section}
</select>

{elseif $CONTENT.items[item].type == 'radio'}
{section name=a loop=$CONTENT.items[item].value}
<label><input type="radio" name="field_fi{$CONTENT.items[item].id}" value="{$CONTENT.items[item].value[a]}" {if $CONTENT.items[item].require == 1} require="true"{/if}>{$CONTENT.items[item].value[a]}</label>
{/section}

{else}

{/if}
<p class="desc">{$CONTENT.items[item].description|text|nl2br}</p>
    </td>
  </tr>
{sectionelse}
  <tr>
    <td colspan="8"></td>
  </tr>
{/section}
  <tr>
    <td></td>
    <td><input type="submit" name="submitbtn" value="Submit" onclick="return false;"></td>
  </tr>
</table>
</form>
</div>
</div>

</div>
</div>